package wang.jinggo.util;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * 分页列表数据
 *
 * @author tanljs
 * @date 2017-07-13
 */
public class PageList<E> extends ArrayList<E> implements Serializable {

    private PageTurn pageTurn = new PageTurn(0l, 0l, 0l);

    public PageList() {
    }

    public PageList(Long pageNo, Long pageSize, Long rowCount) {
        pageTurn = new PageTurn(pageNo, pageSize, rowCount);
    }

    public PageTurn getPageTurn() {
        return pageTurn;
    }
;
    public void setPageTurn(PageTurn pageTurn) {
        this.pageTurn = pageTurn;
    }

    @Override
    public String toString() {
        return "PageList{" +
                "pageTurn=" + pageTurn +
                ", list=" + super.toString() +
                '}';
    }
}
